package com.example.work4.http.imp

import com.example.work4.po.Moments
import com.example.work4.po.ResultBean
import okhttp3.MultipartBody

import okhttp3.ResponseBody
import retrofit2.Call
import retrofit2.http.*


interface ImageRetrofit {
    @Multipart
    @POST("api/image/upload")
    fun uploadOneFile(
        @Header("Authorization") token:String,
        @Part body: MultipartBody.Part): Call<ResultBean<Map<String,String>>>?

    @GET("/api/image/getUploadToken")
    fun getUploadToken(
        @Header("Authorization") token:String,
    ): Call<ResultBean<Map<String,String>>>
}